package cn.framework.model;

import java.text.DecimalFormat;
import java.text.NumberFormat;

public class UploadState {
	
    public double uploadedSize=0;
    
    public double uploadSize=0;
    
    public double uploadPercent=0;
    
    NumberFormat format = new DecimalFormat("#0.00");


	public double getUploadedSize() {
		return uploadedSize;
	}

	public void setUploadedSize(double uploadedSize) {
		uploadedSize=Double.valueOf(format.format(uploadedSize));
		this.uploadedSize = uploadedSize;
	}

	public double getUploadSize() {
		return uploadSize;
	}

	public void setUploadSize(double uploadSize) {
		uploadSize=Double.valueOf(format.format(uploadSize));
		this.uploadSize = uploadSize;
	}

	public double getUploadPercent() {
		return uploadPercent;
	}

	public void setUploadPercent(double uploadPercent) {
		uploadPercent=Double.valueOf(format.format(uploadPercent));
		this.uploadPercent = uploadPercent;
	}

}
